import Vue from "vue";
import VueRouter from "vue-router";
import detail from "./pages/detail";
import list from "./pages/list.vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/list",
      component: list,
    },
    {
      path: "/detail",
      component: detail,
    },
  ],
});

new Vue({
  router: router,
}).$mount("#app");
